from django.shortcuts import render
from .models import models
from rest_framework.viewsets import ModelViewSet
from .serializers import EnvironmentModelSerializer

# 环境数据的增删改查
class EnvironmentView(ModelViewSet):

    queryset = models.Evrironment.objects.all()
    serializer_class = EnvironmentModelSerializer
